const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  //进行跨域的处理
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8082',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '' // 把 `/api/xxx` 变成 `http://localhost:8082/xxx`
        }
      }
    }
  },
  transpileDependencies: true,
  lintOnSave: false
})